var componentMenuAddressBasePath = componentAddressBasePath+"/dhtmlxMenu_pro";
var themeMenuAddressBasePath = componentMenuAddressBasePath;
if(themeAddr != '1'){ 
	themeMenuAddressBasePath = 'theme/'+themeAddr+'/dhtmlx-style';
}
document.write('<link rel="stylesheet" type="text/css" href="'+themeMenuAddressBasePath+'/skins/dhtmlxmenu_dhx_'+getThemeAddrSuffix()+'.css">');
document.write('<script type="text/javascript" src="'+componentAddressBasePath+'/dhtmlxcommon.js"></script>');
document.write('<script src="'+componentMenuAddressBasePath+'/dhtmlxmenu.js"></script>');
document.write('<script src="'+componentMenuAddressBasePath+'/ext/dhtmlxmenu_ext.js" ></script>');

function createMenuFromLayouCell(layout,cell){
	var menu = layout.cells(cell).attachMenu();
	menu.attachEvent("onXLS", function(grid_obj,count){layoutProgressOn(layout);}); 
	menu.attachEvent("onXLE", function(grid_obj,count){layoutProgressOff(layout);}); 
    return menu;
}